<div class="content">
	<table style="width: 100%; height: -webkit-fill-available; margin: 0 auto;">
		<tr>
			<td valign="top"
				style="border-right: 1px solid #dedede; width: 300px;">
				<div style="text-align: center; width: 100%; margin-top: 5px;">
					<button ng-click="addOne()" type="button" class="btn btn-primary">
						<i class="iconfont icon-add"></i>&nbsp;添加部门
					</button>
				</div>
				<div class="clearfix" style="margin-top: 10px;">
					<nav style="max-height: 620px;overflow: auto;">
						<ul id="organizationTree" class="ztree subtree"></ul>
					</nav>
				</div>
			</td>

			<td valign="top" style="padding-left: 30px;">
				<div ng-show="show">

				<span
						style="font-size: 22px; line-height: 50px; font-weight: 500px;"><i
						class="fe" style="margin-top: 14px; float: left;margin-right: 10px;"
						id="{{controllerName}}_th"></i>&nbsp;{{row_name}}</span>
					<button ng-click="updateRule(fk_organization,father_id,type)" type="button" class="btn-outline-warning btn-sm" style="border: none;"><i class="iconfont icon-update"></i></button>
					<div class="float-right ng-scope">
						<button ng-click="addTeacher(fk_organization,type)" type="button"
								class="btn btn-primary">
							<i class="iconfont icon-add"></i>&nbsp; 新增
						</button>

						<button ng-click="updateTeacher()" type="button"
								class="btn btn-warning">
							<i class="iconfont icon-update"></i>&nbsp; 更换部门
						</button>

						<button ng-click="setHandler()" type="button"
								class="btn btn-info">
							<i class="iconfont icon-set"></i>&nbsp; 设置部门负责人
						</button>

						<button ng-click="setAuditor()" type="button"
								class="btn btn-primary">
							<i class="iconfont icon-set"></i>&nbsp; 设置部门审核人
						</button>

						<button ng-click="deleteTeacher()" type="button"
								class="btn btn-danger">
							<i class="iconfont icon-delete"></i>&nbsp; 删除
						</button>
					</div>
					<div class="div-table" style="width: 100%;">
						<table class="table table-hover table-bordered">
							<thead>
							<tr>
								<th class="table-th-checkbox"><input type="checkbox"
																	 ng-click="checkAlls($event.target)" /></th>
								<th>所属部门</th>
								<th>姓名</th>
								<th>联系电话</th>
								<th>部门负责人</th>
								<th>部门审核人</th>
							</tr>
							</thead>

							<tbody ng-switch on="page.current_num">
							<tr ng-switch-when="0">
								<td colspan="100">查询无记录</td>
							</tr>
							<tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
								<td><input type="checkbox" name="dataPk" value="{{row.id}}" />
								</td>
								<td>{{row.org_name}}</td>
								<td>{{row.name}}</td>
								<td>{{row.phone}}</td>
								<td ng-switch on="row.type">
									<span ng-switch-when="0"></span>
									<span ng-switch-when="1">正部门负责人</span>
									<span ng-switch-when="2">副部门负责人</span>
								</td>
								<td ng-switch on="row.manager_type">
									<span ng-switch-when="0"></span>
									<span ng-switch-when="1">分管校长</span>
									<span ng-switch-when="2">部门审核</span>
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
				</div>

			</td>
		</tr>
	</table>
</div>